if __name__ == '__main__':
    words = open('dict/dict.clean.txt', 'r').readlines()
    write_pointer = open('dict/dict.easy.txt', 'w')
    s = 0
    for idx in range(len(words)):
        words[idx] = words[idx][:-1]
    for word in words:
        ch = input(f'[{s}] press s to stop, y for {word}:')
        if ch == 's':
            break
        if ch == 'y':
            write_pointer.write(word + '\n')
            s += 1
    write_pointer.close()
